package com.itbaizhan.service;

import com.itbaizhan.api.UpdateUserService;
import com.itbaizhan.mapper.UserMapper;
import com.itbaizhan.pojo.User;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
@Service
public class UpdateUserServiceImpl implements UpdateUserService {
    @Autowired
    private UserMapper userMapper;
   /*根据id查询用户*/
    @Override
    public User selectByid(Long userid) {
        return userMapper.selectById(userid);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateById(user);
    }
    /*更新用户*/
    /*@Override
    public void updateUser(User user) {
        userMapper.updateById(user);
    }*/
}
